package com.zone.cloud.modules.controller;

import com.yunzone.cloud.common.entity.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/payment")
public class PaymentController {
    @Value("${server.port}")
    private String serverPost;

    @RequestMapping("/query/{id}")
    public Result<String> query(@PathVariable int id){
        return new Result<String>(200,true,"接收到参数："+10+"，来自端口："+serverPost);
    }
}
